package com.ay.weixin.fdc.boss.user.domain;

import java.util.Date;

 public class UserBasic {
	private long id;
	
	private String invite_code;
	
	private long wxproject_id;
	
	private int profile_verify;
	
	private int register_reward;
	
	public static final int REGISTER_REWARD_TRUE=1;
	
	public static final int REGISTER_REWORD_FALSE=0;
	
	private String from_invite_code;
	
	private String password;
	
	private String phone;
	
	private String status;
	
	private long invalid_before_timestamp;
	
	private String type;
	
	private Date create_time;
	
	private String email;
	
	private int black_list_times;
	
	/**
	 * 
	 * 用户名，非必填
	 * 
	 * */
	String user_name;
	
	/**
	 * 
	 * 真实姓名
	 * 
	 * */
	private String name;
	
	private int today_recommand_num;
	
	private Date recommand_date;
	
	public enum PROFILE {
		 VERIFIED(1,"已审核"),
		 VERIFY_FAILED(2,"审核失败"),
		 NOT_VERIFY(0,"未审核");
	     private int value;
	     private String desc;
	     private PROFILE(int value,String desc){
	    	 this.value=value;
	    	 this.desc=desc;
	     }
	     
	   
	     public static PROFILE getStatus(int status){
	    	 switch(status){
	    	 case 1:
	    		 return VERIFIED;
	    	 case 2:
	    		 return VERIFY_FAILED;
	    	 case 0:
	    		 return NOT_VERIFY;
	    	 }
	    	 return NOT_VERIFY;
	     }
		
		public int getValue() {
			return value;
		}


		public void setValue(int value) {
			this.value = value;
		}


		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
	} 
	
	
	
	public void inc_recommand_num(){
		this.today_recommand_num++;
	}
	

	
	public int getToday_recommand_num() {
		return today_recommand_num;
	}


	


	public long getWxproject_id() {
		return wxproject_id;
	}



	public void setWxproject_id(long wxproject_id) {
		this.wxproject_id = wxproject_id;
	}



	public int getRegister_reward() {
		return register_reward;
	}



	public void setRegister_reward(int register_reward) {
		this.register_reward = register_reward;
	}



	public int getProfile_verify() {
		return profile_verify;
	}



	public void setProfile_verify(int profile_verify) {
		this.profile_verify = profile_verify;
	}



	public void setToday_recommand_num(int today_recommand_num) {
		this.today_recommand_num = today_recommand_num;
	}



	public Date getRecommand_date() {
		return recommand_date;
	}



	public void setRecommand_date(Date recommand_date) {
		this.recommand_date = recommand_date;
	}



	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getInvite_code() {
		return invite_code;
	}

	public void setInvite_code(String invite_code) {
		this.invite_code = invite_code;
	}

	public String getFrom_invite_code() {
		return from_invite_code;
	}

	public void setFrom_invite_code(String from_invite_code) {
		this.from_invite_code = from_invite_code;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public long getInvalid_before_timestamp() {
		return invalid_before_timestamp;
	}

	public void setInvalid_before_timestamp(long invalid_before_timestamp) {
		this.invalid_before_timestamp = invalid_before_timestamp;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getCreate_time() {
		return create_time;
	}
	
	public String getCreate_time_str() {
		if(create_time==null)return "";
		return create_time.toLocaleString();
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}



	public int getBlack_list_times() {
		return black_list_times;
	}



	public void setBlack_list_times(int black_list_times) {
		this.black_list_times = black_list_times;
	}
	
	
}
